<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ejs1</title>
</head>

<body>
    ejs格式
    ejs模板
    <h2>
        <%=message%>
    </h2>
    <ul>
        <% data.forEach(item=>{ %>
            <li>
                <%=item.name%>----<%=item.age%>
            </li>
        <% })%>
        <% if(flag){ %>
        登录成功
        <% }else{ %>
        登录失败
        <% }%>
    </ul>
</body>

</html>